# SPDX-License-Identifier: LGPL-2.1+

util_sources = files('''
        log.c
        log.h
        time-util.c
        time-util.h
        util.c
        util.h
'''.split())

libshared_sources = files('''
        cacache.c
        cacache.h
        cachunk.c
        cachunk.h
        cachunker.c
        cachunker.h
        cachunkid.c
        cachunkid.h
        cacommon.h
        cacompression.c
        cacompression.h
        cadecoder.c
        cadecoder.h
        cadigest.c
        cadigest.h
        caencoder.c
        caencoder.h
        cafileroot.c
        cafileroot.h
        caformat-util.c
        caformat-util.h
        caformat.h
        caindex.c
        caindex.h
        calocation.c
        calocation.h
        camakebst.c
        camakebst.h
        camatch.c
        camatch.h
        canametable.c
        canametable.h
        canbd.c
        canbd.h
        caorigin.c
        caorigin.h
        caprotocol-util.c
        caprotocol-util.h
        caprotocol.h
        caremote.c
        caremote.h
        caseed.c
        caseed.h
        castore.c
        castore.h
        casync.c
        casync.h
        cautil.c
        cautil.h
        chattr.c
        chattr.h
        compressor.c
        compressor.h
        def.h
        dirent-util.c
        dirent-util.h
        fssize.c
        fssize.h
        gc.c
        gc.h
        gcc-macro.h
        hash-funcs.c
        hash-funcs.h
        hashmap.c
        hashmap.h
        mempool.c
        mempool.h
        notify.c
        notify.h
        parse-util.c
        parse-util.h
        quota-projid.c
        quota-projid.h
        realloc-buffer.c
        realloc-buffer.h
        reflink.c
        reflink.h
        rm-rf.c
        rm-rf.h
        set.h
        siphash24.c
        siphash24.h
'''.split())

libshared = static_library(
              'shared',
              libshared_sources,
              util_sources)

casync_sources = files('''
        casync-tool.c
        canbd.c
        canbd.h
        cafuse.h
        signal-handler.c
        signal-handler.h
'''.split())

if conf.get('HAVE_FUSE') == 1
        casync_sources += files('cafuse.c')
endif

casync_http_sources = files('casync-http.c')
